#pragma once

#include "lg.h"


struct LGRef {
    int ref;
    LGRefFree free;
    LGRef* gcNext;
};

extern int
lgInitRefContext(LGConfig* config);

extern void
lgAutoGcRef();